<?PHP
require_once("./config.php");
//QPHP::setDebug(true);
define('APP_ROOT',str_replace("\\",DIRECTORY_SEPARATOR,dirname(__FILE__)). DIRECTORY_SEPARATOR);
QPHP::setAppDir(".");

if (false === ($res = QPHP::run())) {
	header('HTTP/1.1 404 Not Found');
	header('Status: 404 Not Found');
	exit;
} else {
	echo $res;
	exit;
}